package test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class We {
	public static void main(String[] args) throws ParseException {
		SimpleDateFormat sbf =new SimpleDateFormat("yyyy.MM.dd");
	    String sdate="2004.5.14";
	    Date ddate = sbf.parse(sdate);
	    String sdate2="2004.5.18";
	    Date ddate2 = sbf.parse(sdate2);
	   
	    System.out.println(ddate+" "+ ddate2.after(ddate));


	}

}
